
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;



namespace Swaf.Container
{
	/// <summary>
	/// Summary description for ContainerException.
	/// </summary>
	[Serializable]
	public class ContainerException : BaseException
	{
		/// <summary>
		/// Default exception constructor that provides no detail other then the class type of
		/// the exception itself.
		/// </summary>
		public ContainerException()
		{
			//Intentionally left blank.
		}
		public ContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
		{
		}

		/// <summary>
		/// Simple text message constructor that maps to System.Exception message.
		/// </summary>
		/// <param name="msg">Passed to Exception.Message</param>
		public ContainerException(string msg)
		 :base(msg) //TODO: Call resmgr.resolve on this
		{
			//Intentionally left blank.
		}

		/// <summary>
		/// Creates exception with an 'inner exception' as specified.  This helps to pass detailed
		/// exception info when rethrowing with a new exception.
		/// </summary>
		/// <param name="msg">Base description of exception - passed to Exception.Message</param>
		/// <param name="innerException">The root cause of this exception - passed to Exception.InnerException</param>
		public ContainerException(string msg, Exception innerException)
		 :base(msg, innerException)
		{
			//Intentionally left blank.
		}
	}
}
